package com.village.zpark.service;

import com.github.pagehelper.PageInfo;
import com.village.zpark.pojo.Clinic;

import java.util.List;

public interface ClinicService {
    /**
     * 查询所有
     */
    public List<Clinic> findAll();

    /**
     *根据id查询
     */
    public Clinic findById(Integer id);

    /**
     * 新增
     */
    public int addClinic(Clinic clinic);

    /**
     * 修改
     */
    public int updateClinic(Clinic clinic);

    /**
     * 删除
     */
    public int deleteClinicById(Integer id);

    /**
     * 分页查询
     */
    public PageInfo<Clinic> findPage(int page, int size, String param );
}
